﻿<%@ Page Title="Gestíon de usuarios" Language="C#" MasterPageFile="~/Delivery.master" AutoEventWireup="true" CodeFile="frmUsuarioABM.aspx.cs" Inherits="Seguridad_frmUsuarioABM" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contenido" Runat="Server">
    <table  cellpadding="2" cellspacing="2" align="center">
    <tr>
        <td colspan="2">
            <asp:ValidationSummary ID="vsErrores" runat="server" 
                HeaderText="Han ocurrido los siguientes errores:" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblLogin" runat="server" Text="Login:"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtLogin" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvLogin" runat="server" 
                ControlToValidate="txtLogin" ErrorMessage="Valor requerido para usuario">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblClave" runat="server" Text="Clave:"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtClave" runat="server" TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtClave" Display="Dynamic" ErrorMessage="Campo Obligatorio">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblConfirmacion" runat="server" Text="Confirmación:"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtConfirmacion" runat="server" TextMode="Password"></asp:TextBox>
            <asp:CompareValidator ID="cvClave" runat="server" 
                ControlToCompare="txtClave" ControlToValidate="txtConfirmacion" 
                ErrorMessage="Valor incorrecto para confirmación" Display="Dynamic">*</asp:CompareValidator>
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center">
            <asp:Button ID="butNuevo" runat="server" Text="Nuevo" BorderStyle="None" 
                CausesValidation="False" onclick="butNuevo_Click" />
            <asp:Button ID="butModificar" runat="server" Text="Modificar" 
                CausesValidation="False" onclick="butModificar_Click" BorderStyle="None" />
            <asp:Button ID="butEliminar" runat="server" Text="Eliminar" 
                CausesValidation="False" onclick="butEliminar_Click" BorderStyle="None" />
            &nbsp;<asp:Button ID="butAceptar" runat="server" Text="Aceptar" 
                onclick="butAceptar_Click" BorderStyle="None" />
            <asp:Button ID="butCancelar" runat="server" CausesValidation="False" 
                Text="Cancelar" onclick="butCancelar_Click" BorderStyle="None" 
                style="height: 22px" />
        </td>
    </tr>
</table>
                <br />
                <table align="center" cellpadding="2" cellspacing="2">
                    <tr>
                        <td>
                            <asp:Label ID="lblFiltro" runat="server" Text="Filtrar por:"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="Login"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtFiltroLogin" runat="server"></asp:TextBox>
                        </td>
                        <td>
            <asp:Button ID="butBuscar" runat="server" CausesValidation="False" 
                Text="Buscar" onclick="butBuscar_Click" BorderStyle="None" />
                        </td>
                    </tr>
                </table>
    <br />
    <table align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center">
                <asp:GridView ID="grvDatos" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                    GridLines="None" PageSize="5" 
                    onselectedindexchanged="grvDatos_SelectedIndexChanged" 
                    onpageindexchanged="grvDatos_PageIndexChanged" 
                    onpageindexchanging="grvDatos_PageIndexChanging">
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="Login" HeaderText="Login" SortExpression="Login" />
                        <asp:CommandField ShowSelectButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>

